package cn.tedu.store.feign;

import cn.tedu.store.entity.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 远程访问address-service服务
 */
@FeignClient(name = "address-service")
public interface AddressServiceClient {
    @PostMapping("/addresses/findByAid")
    public Address findByAid(@RequestBody Integer aid);
}
